
[#include "single/layout/layout02/layout.ftl"/]
[@htmlHead]
<style type="text/css">

</style>
[/@htmlHead]

[@htmlBody]
<div class="row">
    <div class="col-xs-3"></div>
    <div class="col-xs-8">
        <div id="indexAlert" class="hide" style="min-width:400px"></div>
        <form class="form-horizontal" method="post" id="editForm">
            <div class="form-group">
                <label class="control-label col-xs-4" align="right">请输入需要找回密码的账号</label>

                <div class="col-xs-4">
                    <input type="text" class="form-control" name="userName"/>
                </div>
            </div>
            <div class="form-group">
                <div class=" col-xs-8" align="center">
                    <input type="button" value="确定" onclick="findPass()" class="btn btn-info btn-sm "/>
                </div>
            </div>
        </form>
    </div>
</div>
[/@htmlBody]

[@htmlFoot]
<script src="${jpath}/assets/public/plugins/dialog/bootbox.js" type="text/javascript"></script>
<script type="text/javascript">
    function findPass(){
        var userName=$("input[name=userName]").val();
        if(userName){
            var url="${base}/normal/view/retrievePassword/sendMail";
            $.post(url,{"userName":userName},function(data){
                $.messager.alert0({selector: "#editAlert", type: data.code, html: data.message});
                if (data && data.code == 'SUCCESS') {
                    tools.goto(base + "/normal/retrievePassword/toMailSuccess", 500);
                }
            }, "json")
        }
    }
</script>


[/@htmlFoot]